package com.banyuan.lesson.工具类.包装类;

import java.math.BigInteger;

//大整形
public class BigNumber {
    public static void main(String[] args) {
        BigInteger bigInteger = new BigInteger("100000000000000000000");
        BigInteger bigInteger1 = new BigInteger("1");
        BigInteger add =  bigInteger.add(bigInteger1);
        BigInteger subtract =  bigInteger.subtract(bigInteger1);
        BigInteger mutiply =  bigInteger.multiply(bigInteger1);
        BigInteger divide =  bigInteger.divide(bigInteger1);

        System.out.println(add.toString());
        System.out.println(subtract.toString());
        System.out.println(mutiply.toString());
        System.out.println(divide.toString());
    }
}
